package cn.myschool.exer;

public class Computer {
    private String brand;
    private Crate crate;
    private Displayer displayer;
    public void show(){
        System.out.println("这是"+brand+"牌电脑.");
        this.displayer.show();
        this.crate.assemble();
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setCrate(Crate crate) {
        this.crate = crate;
    }

    public void setDisplayer(Displayer displayer) {
        this.displayer = displayer;
    }
}
